package com.bruce.rentHouse.restFul;

/**
 * Created by bruce on 18/2/4 -- 18:54
 * ____    ____  ___      .__   __.   _______        __   __   _______
 * \   \  /   / /   \     |  \ |  |  /  _____|      |  | |  | |   ____|
 * \   \/   / /  ^  \    |   \|  | |  |  __        |  | |  | |  |__
 * \_    _/ /  /_\  \   |  . `  | |  | |_ | .--.  |  | |  | |   __|
 * |  |  /  _____  \  |  |\   | |  |__| | |  `--'  | |  | |  |____
 * |__| /__/     \__\ |__| \__|  \______|  \______/  |__| |_______|
 */
public enum ResultStatus {
    SUCCESS(200, "成功"),
    FAIL(400, "失败"),
    PARAM_ERROR(401, "参数错误"),
    RESULT_NULL(402, "结果对象为null"),
    EXCEPTION(403, "报异常了"),
    NOT_FOUND(404, "没找到");
    //
    private Integer code;
    private String message;

    ResultStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
